package org.advanced.pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;

/**
 * @author John.zhang
 * @version Id: ExecutorSelf, v 1.0 2020/12/11 16:28 ZhiYong Exp $
 */
public class ExecutorSelf {

    public static ExecutorService newFixedThreadPool(int nThreads){
        return new ThreadPoolSerfs(nThreads, nThreads,
                0L, TimeUnit.MILLISECONDS,
                new LinkedBlockingQueue<Runnable>());
    }

}
